﻿using InnoWeb.CEND.Core.Model.Base;
using InnoWeb.CEND.Core.Model.Expert;
using InnoWeb.CEND.Core.Model.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InnoWeb.CEND.Core.Model.Blog
{
    public class BlogItem : BaseItem
    {
        //public string Name { get; set; }

        //public string NameTR { get; set; }

        public BlogItem()
        {

        }

        public ExpertInfo Expert { get; set; }

        public int ExpertInfoId { get; set; }

        private IList<BlogContent> _blogContents;

        private IList<BlogComment> _blogComments;

        public IList<BlogContent> BlogContents
        {
            get { return _blogContents ?? (_blogContents = new List<BlogContent>()); }
            protected set { _blogContents = value; }
        }

        public IList<BlogComment> BlogComments
        {
            get { return _blogComments ?? (_blogComments = new List<BlogComment>()); }
            protected set { _blogComments = value; }
        }

    }
}
